﻿@page
@inherits Edu.Pages.EduPageBase


@using Microsoft.AspNetCore.Authorization
@using Volo.Abp.AspNetCore.Mvc.UI.Layout
@using Edu.Permissions
@model Edu.Web.Pages.StudyTask.IndexModel

@inject IAuthorizationService Authorization
@inject IPageLayout PageLayout
@{
    PageLayout.Content.Title = "任务管理";
}

@section scripts {
<abp-script src="/pages/js/studytask.js" />
}

<div id="StudyTasksWrapper">

    <abp-row class="mb-3">
        <abp-column size-md="_6">
            <h1 class="h3  text-gray-800">@PageLayout.Content.Title</h1>
        </abp-column>
        <abp-column size-md="_6" class="text-right">
            @*@if (await Authorization.IsGrantedAsync(StudyTaskPermissions.Create))
            {
            <abp-button button-type="Primary" name="CreateStudyTask" text="添加任务" icon="plus" />
            }*@
        </abp-column>
    </abp-row>

    <abp-card class="shadow">
        <abp-card-body>

            <abp-table striped-rows="false" class="nowrap" border-style="Bordered" responsive="true">
                <thead>
                    <tr>
                        <th>名称</th>
                        <th>状态</th>
                        <th>添加时间</th>
                        <th>@L["Actions"]</th>
                    </tr>
                </thead>
            </abp-table>

        </abp-card-body>
    </abp-card>

</div>